//
//  ViewController.m
//  testXcode 9
//
//  Created by boai on 2017/8/2.
//  Copyright © 2017年 boai. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property(nonatomic, strong) UIView *testView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [self test];
}

- (void)test
{
    self.testView = [UIView new];
    self.testView.frame = CGRectMake(50, 20, 200, 100);
    self.testView.backgroundColor = [UIColor redColor];
    
    [self.view addSubview:self.testView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
